/***********************************************
 @Name :        小谭老师
 @Time :        2025-2-22
 @Email :       tan.zhipeng@outlook.com
 @Comment :     功能窗口 天气预报
 @FileName :    widget_funcd_weather.cpp
 @Version :     1.0
************************************************/


#include "widget_funcd_weather.h"
#include "ui_widget_funcd_weather.h"

#include "weather_json.h"  // 需要包含weather_json类的头文件
#include "day.h"          // 需要包含day类的头文件

Widget_funcD_Weather::Widget_funcD_Weather(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget_funcD_Weather)
{
       ui->setupUi(this);
       connect(ui->widget, &search::weatherDataUpdated,ui->widget_4, &Day::handleWeatherData);
       connect(ui->widget, &search::weatherDataUpdated,ui->widget_3, &weather::handleWeatherData);
       connect(ui->widget, &search::weatherDataUpdated,ui->widget_2, &Today::handleWeatherData);
}

Widget_funcD_Weather::~Widget_funcD_Weather()
{
    delete ui;
}
